package cn.dnui_lxx432.dnuifood_16110100432.service;

import java.util.List;

import cn.dnui_lxx432.dnuifood_16110100432.JavaBean.CollectStatus;
import cn.dnui_lxx432.dnuifood_16110100432.JavaBean.FoodBean;
import cn.dnui_lxx432.dnuifood_16110100432.JavaBean.ResultBean;
import cn.dnui_lxx432.dnuifood_16110100432.JavaBean.ShopBean;
import cn.dnui_lxx432.dnuifood_16110100432.JavaBean.comments;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface ShopService {
    //获取所有店铺
    @GET("getAllShops.do")
    Call<List<ShopBean>> getAllShops();
    //获取当前店铺所有菜单
    @GET("getFoodByShop.do")
    Call<List<FoodBean>>getFoodByShop(@Query("shop_id") String shop_id);
    //获取店铺详情
    @GET("getShopById.do")
    Call<ShopBean>getShopById(@Query("shop_id") String shop_id);





    @GET("getFoodById.do")
    Call<FoodBean> getFoodById(@Query("food_id")String food_id);

    @GET("getFoodBySearch.do")
    Call<List<FoodBean>> getFoodBySearch (@Query("search")String search);


    @GET("getAllCommentsByFood.do")
    Call<List<comments>> getAllCommentsByFood(@Query("food_id")String food_id);

    @GET("insertComment.do")
    Call<ResultBean> insertComment(@Query("item_id")String item_id,
                                   @Query("content")String content);

    @GET("insertOrder.do")
    Call<ResultBean> insertOrder(@Query("user_id")String user_id,
                                 @Query("food_id")String food_id,
                                 @Query("num")String num,
                                 @Query("sum")String sum,
                                 @Query("suggesttime")String suggesttime,
                                 @Query("address")String address

    );


}
